package com.ww.microrpc;

import org.springframework.beans.factory.annotation.Value;

public class RegisterDiscoveryProperties {

    @Value("${spring.application.name}")
    private String serviceName;
    @Value("${micro-rpc.discovery-client:true}")
    private boolean enabled;
    @Value("${micro-rpc.server.ip:0.0.0.0}")
    private String ip;

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }
}
